package com.itheima.appserver.excepiton;

public enum ErrInfo {
    //成功
    OK("100000","成功"),
    error("100001","未知异常，请稍后重试"),
    phoneError("100002","手机号格式错误"),
    codeTimeError("100003","验证码未失效"),
    codeTimeOutError("100004","验证码已失效"),
    codeError("100005","验证码错误"),
    codeTimeInError("100006","已发送验证码，请稍后再试"),
    tokenError("100007","token错误"),
    tokenTimeOutError("100008","token过期"),
    userInfoIsEmptyError("100009","用户信息不全"),
    picFormatError("100010","图片格式错误"),
    picSizeError("100011","图片大小有误"),
    picError("100012","图片有误，请重新上传"),
    textError("100013","内容不能为空"),
    videoError("100014","上传短视频异常"),
    addFriendError("100015","上传短视频异常");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ErrInfo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }



}
